﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm2-2.aspx.cs" Inherits="Example.WebForm2_2" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Command事件示例</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        按钮Command事件示例<hr />
        <asp:Label ID="lblAsp" runat="server" Text="ASP.NET程序设计" /><br/><br/>
        <asp:Button ID="btnRed" runat="server" CommandName="red" OnCommand="Button_Command" Text="红色" /> &nbsp;
        <asp:Button ID="btnGreen" runat="server" CommandName="green" OnCommand="Button_Command" Text="绿色" /> &nbsp;
        <asp:Button ID="btnBlue" runat="server" CommandName="blue" OnCommand="Button_Command" Text="蓝色" /> &nbsp;
    </div>
    </form>
</body>
</html>
